@extends("h5.layouts.main")
@section('content')
<?php
use App\Jobs\Fun;
use App\admin\Service\OA;
use App\Models\MoneyBilModel;
$out_trade_no=$_GET['out_trade_no']??'';
$uid= OA::$user->getId();
$moneyModel= MoneyBilModel::where([
    'out_trade_no'=>$out_trade_no
])->first();
if(!$moneyModel){
    Fun::showmsg('订单不存在');
}
if($uid!==$moneyModel->uid){
        Fun::showmsg('该订单不属于您的');
}

?>
<div class="divbodyH5 moneyDiv">
    <div id="settingTitle">
        <b>提现详情</b>
        <a class="back" href="/h5/my/money/index"> <img src="/h5/images/return.png" id="settingRtn"></a>
    </div>

    <div class="myTable"> 


        <div class="infoDiv">

            <ul class="ul">
                <li class="li">
                    <span class="label">当前余额:</span>
                    <span class="value">¥<?= $yue= OA::$user->getMoney() ?></span> 
                </li>
                
                
                
                <li class="li">
                    <span class="label">提现金额:</span>
                    <span class="value">¥<?= $moneyModel->money ?></span> 
                </li>
                
                
                <li class="li">
                    <span class="label">支付宝:</span>
                    <span class="value"><?=  Fun::encode($moneyModel->tixian_zhanghu) ?></span> 
                </li>
                
                
                <li class="li">
                    <span class="label">姓名:</span>
                    <span class="value"><?= Fun::encode($moneyModel->tixian_xingming) ?></span> 
                </li>
                
                <li class="li">
                    <span class="label">账单:</span>
                    <span class="value"><?= $moneyModel->out_trade_no ?></span> 
                </li>
                
                <li class="li">
                    <span class="label">提现时间:</span>
                    <span class="value"><?= Fun::date($moneyModel->time) ?></span> 
                </li>
 
                
                <li class="li">
                    <span class="label">状态:</span>
                    <span class="value"><?= MoneyBilModel::getstatus($moneyModel->status) ?></span> 
                </li>
               
                <?php
                if($moneyModel->status== MoneyBilModel::status_fail){
                    ?>
                         <li class="li">
                    <span class="label">失败消息:</span>
                    <span class="value"><?= Fun::encode($moneyModel->msg) ?></span> 
                </li>
                        <?php
                }elseif($moneyModel->status== MoneyBilModel::status_null){
                    ?>
                        <li class="li">
                    <span class="label">待审核:</span>
                    <span class="value"><?= MoneyBilModel::shenheTimeMsg ?></span> 
                </li>
                        <?php
                }
                
                ?>

            </ul> 

        </div> 

    </div>



</div>
<script>
    new MC.Money.tixian();

</script>

@stop